import request from '@/utils/request'

// 查询通风设施列表
export function listTongfeng(query) {
  return request({
    url: '/biz/tongfeng/list',
    method: 'get',
    params: query
  })
}

// 查询通风设施详细
export function getTongfeng(id) {
  return request({
    url: '/biz/tongfeng/' + id,
    method: 'get'
  })
}

// 新增通风设施
export function addTongfeng(data) {
  return request({
    url: '/biz/tongfeng',
    method: 'post',
    data: data
  })
}

// 修改通风设施
export function updateTongfeng(data) {
  return request({
    url: '/biz/tongfeng',
    method: 'put',
    data: data
  })
}

// 删除通风设施
export function delTongfeng(id) {
  return request({
    url: '/biz/tongfeng/' + id,
    method: 'delete'
  })
}

// 导出通风设施
export function exportTongfeng(query) {
  return request({
    url: '/biz/tongfeng/export',
    method: 'get',
    params: query
  })
}
